package com.haoshuang.zhouzhoubang.ui.page.home.settings.skill.passed

import com.haoshuang.zhouzhoubang.databinding.ItemAddSkillLabelBinding
import com.haoshuang.zhouzhoubang.databinding.ItemPassedSkillLabelBinding
import com.haoshuang.zhouzhoubang.model.bean.SkillAddBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 
 */
class PassedSkillLabelAdapter(data: MutableList<SkillAddBean.Small.LittleCate>) : BaseBindingQuickAdapter<SkillAddBean.Small.LittleCate, ItemPassedSkillLabelBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: SkillAddBean.Small.LittleCate?) {
        holder.getViewBinding<ItemPassedSkillLabelBinding>().apply {
            tvTitle.text = item?.cate_name
            tvTitle.isSelected = item?.is_checked == true
        }
    }

}